package 考试;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

public class MapKecheng {
    public static void main(String[] args) {
        Map map=new HashMap();
        map.put("CoreJava","tom");
        map.put("Oracle","John");
        map.put("Oracle","Susan");
        map.put("JDBC","Jerry");
        map.put("Unix","Jim");
        map.put("JSP","Kevin");
        map.put("CoreJava ","Lucy");
        map.put("JDBC","Allen");
        Set entrySet=map.entrySet();
        for (Object obj:entrySet){
            Map.Entry entry=(Map.Entry)obj;
            System.out.println(entry);

        }
    }
}
